import { makeAutoObservable } from "mobx";
import { getClassInfo } from '@/services'
import { NeedFace } from '@/utils/need'

class Need{
    constructor(){
        makeAutoObservable(this);
    }

    NeedValue: NeedFace[] = [] as NeedFace[];

    async GetNeedValue (){
        let result = await getClassInfo();
        if( result.data ){
            this.NeedValue = result.data;
            // console.log(this.NeedValue.);
            this.NeedValue.forEach(item=>{
                console.log(item);
                
            })
            
        }
    }
}

export default new Need;